package sanrenxing.dayEnd.backRepertoryTotal.domain;

public class MarketDataT {
    private int marketId;	//主键编号
    private String seId;	//证券编号	varchar2
    private String inputDate;	//录入日期	date
    private double openPrice;	//开盘价格	number
    private double closePrice;	//闭市价格	number
    private String notes;	//备注	varchar2

    public MarketDataT() {
    }

    public MarketDataT(int marketId, String seId, String inputDate, double openPrice, double closePrice, String notes) {
        this.marketId = marketId;
        this.seId = seId;
        this.inputDate = inputDate;
        this.openPrice = openPrice;
        this.closePrice = closePrice;
        this.notes = notes;
    }

    public int getMarketId() {
        return marketId;
    }

    public void setMarketId(int marketId) {
        this.marketId = marketId;
    }

    public String getSeId() {
        return seId;
    }

    public void setSeId(String seId) {
        if (seId.contains(".")){
            this.seId=seId.split("\\.")[0];
        }else
        this.seId = seId;
    }

    public String getInputDate() {
        return inputDate;
    }

    public void setInputDate(String inputDate) {
        this.inputDate = inputDate;
    }

    public double getOpenPrice() {
        return openPrice;
    }

    public void setOpenPrice(double openPrice) {
        this.openPrice = openPrice;
    }

    public double getClosePrice() {
        return closePrice;
    }

    public void setClosePrice(double closePrice) {
        this.closePrice = closePrice;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }
}
